﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shop/MasterPage.master" AutoEventWireup="true" CodeFile="AddNews.aspx.cs" Inherits="shop_AddNews" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style5 {
            margin-left: 0px;
            margin-top: 15px;
        }
        .auto-style6 {
            margin-left: 77px;
        }
        .auto-style7 {
            margin-top: 15px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label1" runat="server" Text="标题："></asp:Label>
    <asp:TextBox ID="txtTitle" runat="server" MaxLength="50" Width="220px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="txtTitle" ErrorMessage="标题不能为空！" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label2" runat="server" Text="内容："></asp:Label>
    <asp:TextBox ID="txtContent" runat="server" CssClass="auto-style5" Height="70px" MaxLength="255" TextMode="MultiLine"></asp:TextBox>
    <br />
&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label3" runat="server" Text="图片："></asp:Label>
    <asp:FileUpload ID="fupPicture" runat="server" CssClass="auto-style7" Width="227px" />
    <br />
    <br />
    <asp:Button ID="btnAdd" runat="server" CssClass="auto-style6" OnClick="btnAdd_Click" Text="添加" Width="83px" />
&nbsp;&nbsp;&nbsp;
    <asp:Label ID="labMsg" runat="server" ForeColor="Red"></asp:Label>
    <br />
    <br />
</asp:Content>

